<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./node_modules/vue/dist/vue.js"></script>
</head>
<body>
    <div id="app">
        {{num}}
        {{imgsrc}}
        <img v-bind:src="imgsrc" v-bind:width="width" >
        <input type="text" v-bind:value="imgsrc" v-bind:style="style">
        <input type="text" v-model="style">
        <hr>
        <img :src="imgsrc" v-bind:width="width" >
    </div>
    <script>
        //1.创建Vue实例
        const vm = new Vue({
            el:"#app",
            data:{
                style:"color:red",
                imgsrc:"./img/car.png",
                width:"100px",
                num:0
            }
        })

    </script>
</body>
</html>